package csu.jpetstore.jpetstore.controller;

import csu.jpetstore.jpetstore.result.Result;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@RequestMapping(value = "/api")
@RequiresAuthentication
public class ShopCartController {
    //add
    @RequestMapping(value = "/shopCarts",method = RequestMethod.POST)
    public Result getShopCart(){
        return null;
    }
    //delete
    @RequestMapping(value = "/shopCarts",method = RequestMethod.DELETE)
    public Result deleteShopCart(){
        return null;
    }
    //update
    @RequestMapping(value = "/shopCarts",method = RequestMethod.PATCH)
    public Result updateShopCart(){
        return null;
    }
    //query
    @RequestMapping(value = "/shopCarts",method = RequestMethod.GET)
    public Result findAll(){
        return null;
    }
}
